home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-07-29 | 32.8 KB | 1,237 lines |
- -- background: 7045 from stack: in.979
- -- bmap block id: 4445
- -- flags: 0000
- -- background id: 0
- -- name: Effects Editor
- ----- HyperTalk script -----
- on openCard
- put the short name of this card into bkgnd field "Title"
- put "Prev Card:" && short name of prev card into field id 78
- put "Next Card:" && short name of next card into field id 79
- pass openCard
- end openCard
-
- on mouseEnter
- global TargetEnter, NewBtn, NewBtnid, NewBtnN
- if TargetEnter <> empty then
- wait 60
- put the short name of the target into NewBtn
- put the target into NewBtnN
- put the id of the target into NewBtnid
- put "Change font of " & NewBtnN
- if word 2 of NewBtnN <> "Button" then exit mouseEnter
- if word 2 of NewBtn is "Button" then
- ask "This Button needs a name." with "Please, type name here."
- if it is empty then exit mouseEnter
- set name of NewBtnN to it
- put it into NewBtn
- end if
- answer "Change font of " & NewBtnN with "Cancel" or "OK"
- if it is "Cancel" then exit mouseEnter
- put empty into TargetEnter
- hide msg
- iconCheck
- end if
- end mouseEnter
-
-
-
- -- part 74 (button)
- -- low flags: 00
- -- high flags: 0001
- -- rect: left=114 top=67 right=311 bottom=491
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Grid Cover
-
-
- -- part 17 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=26 top=121 right=171 bottom=65
- -- title width / last selected line: 0
- -- icon id / first selected line: 4315 / 4315
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Effects
- ----- HyperTalk script -----
- on mouseUp
- global Speed, Color
- repeat with i = 4312 to 4315
- set icon of me to i
- end repeat
- repeat with i = 24 to 25
- set the visible of card field id i to not the visible of card field id i
- end repeat
- set scroll of card field "Visual Effects" to 0
- repeat with i = 42 to 45
- set the visible of card btn id i to not the visible of card btn id i
- end repeat
- if the visible of card field "Visual Effects" is true then
- set hilite of me to true
- repeat with i = 22 to 25
- set style of bkgnd btn id i to rectangle
- end repeat
- else
- set hilite of me to false
- repeat with i = 22 to 25
- set style of bkgnd btn id i to transparent
- end repeat
- repeat with i = 18 to 19
- if hilite of bkgnd btn id i is true then
- send mouseUp to bkgnd btn id i
- end if
- end repeat
- put empty into card field "Test"
- end if
- put empty into Color
- put empty into Speed
- pass mouseUp
- end mouseUp
-
-
-
-
-
-
- -- part 18 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=68 top=121 right=171 bottom=107
- -- title width / last selected line: 0
- -- icon id / first selected line: 14283 / 14283
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Speed
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to not hilite of me
- if hilite of me is true then effects
- repeat with i = 26 to 29
- set the visible of card btn id i to not the visible of card btn id i
- end repeat
- pass mouseUp
- end mouseUp
-
-
-
- -- part 19 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=68 top=174 right=224 bottom=107
- -- title width / last selected line: 0
- -- icon id / first selected line: 23177 / 23177
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Color
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to not hilite of me
- if hilite of me is true then effects
- repeat with i = 30 to 33
- set the visible of card btn id i to not the visible of card btn id i
- end repeat
- pass mouseUp
- end mouseUp
-
-
-
-
-
-
- -- part 20 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=26 top=235 right=285 bottom=65
- -- title width / last selected line: 0
- -- icon id / first selected line: 4188 / 4188
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Info
- ----- HyperTalk script -----
- on mouseUp
- do short name of me
- end mouseUp
-
-
-
- -- part 21 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=68 top=235 right=285 bottom=107
- -- title width / last selected line: 0
- -- icon id / first selected line: 4179 / 4179
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Map
- ----- HyperTalk script -----
- on mouseUp
- doMenu short name of me
- end mouseUp
-
-
- -- part 22 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=200 top=268 right=291 bottom=225
- -- title width / last selected line: 0
- -- icon id / first selected line: 1014 / 1014
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Go To Previous Card
- ----- HyperTalk script -----
- on mouseUp
- scroll L
- go to prev card
- end mouseUp
-
-
-
- -- part 23 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=225 top=268 right=291 bottom=252
- -- title width / last selected line: 0
- -- icon id / first selected line: 21700 / 21700
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Go To Home Card
- ----- HyperTalk script -----
- on mouseUp
- scroll D
- go home
- end mouseUp
-
-
-
- -- part 24 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=252 top=268 right=291 bottom=276
- -- title width / last selected line: 0
- -- icon id / first selected line: 1013 / 1013
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Go To Next Card
- ----- HyperTalk script -----
- on mouseUp
- scroll R
- go to next card
- end mouseUp
-
-
-
- -- part 25 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=462 top=268 right=291 bottom=485
- -- title width / last selected line: 0
- -- icon id / first selected line: 1012 / 1012
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Go Back
- ----- HyperTalk script -----
- on mouseUp
- scroll U
- pop card
- end mouseUp
-
-
-
- -- part 36 (button)
- -- low flags: 80
- -- high flags: 0000
- -- rect: left=83 top=161 right=174 bottom=98
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Date
-
-
- -- part 38 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=13 top=32 right=66 bottom=495
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 185
- -- text size: 26
- -- style flags: 10496
- -- line height: 34
- -- part name: Title
-
-
- -- part 43 (button)
- -- low flags: 00
- -- high flags: E004
- -- rect: left=210 top=311 right=327 bottom=264
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Effects
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- beep
- answer "You're already in" && quote & short name of me & quote & "."
- end mouseUp
-
-
-
- -- part 51 (button)
- -- low flags: 80
- -- high flags: 4002
- -- rect: left=224 top=63 right=75 bottom=370
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Mouse Loc
-
-
- -- part 52 (field)
- -- low flags: 80
- -- high flags: 0000
- -- rect: left=223 top=62 right=74 bottom=315
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 10496
- -- line height: 12
- -- part name: Mouse Loc1
-
-
- -- part 53 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=312 top=62 right=76 bottom=369
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 10496
- -- line height: 12
- -- part name: Mouse Loc2
- ----- HyperTalk script -----
- on idle
- if the visible of field "Mouse Loc2" is true then
- put the mouseLoc into field "Mouse Loc2"
- end if
- send idle to stack
- exit idle
- pass idle
- end idle
-
-
- -- part 72 (button)
- -- low flags: 80
- -- high flags: 4002
- -- rect: left=15 top=300 right=312 bottom=251
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 9
- -- style flags: 256
- -- line height: 12
- -- part name: Prev Card: knobs
- ----- HyperTalk script -----
- on mouseUp
- scrollL
- go to card char 12 to 99 of short name of me
- end mouseUp
-
-
-
- -- part 73 (button)
- -- low flags: 80
- -- high flags: 4002
- -- rect: left=253 top=300 right=312 bottom=492
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 9
- -- style flags: 256
- -- line height: 12
- -- part name: Next Card: the field fabricater
- ----- HyperTalk script -----
- on mouseUp
- scrollR
- go to card char 12 to 99 of short name of me
- end mouseUp
-
-
-
- -- part 78 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=16 top=300 right=312 bottom=252
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 10496
- -- line height: 12
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- scrollL
- go to card char 12 to 99 of short name of me
- end mouseUp
-
-
-
- -- part 79 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=253 top=300 right=313 bottom=492
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 10496
- -- line height: 12
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- scrollR
- go to card char 12 to 99 of short name of me
- end mouseUp
-
-
-
- -- part 80 (button)
- -- low flags: 80
- -- high flags: 6002
- -- rect: left=374 top=63 right=75 bottom=493
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: FreeSpaceMon
-
-
- -- part 81 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=374 top=62 right=74 bottom=466
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 10496
- -- line height: 12
- -- part name: FreeSpaceMon1
- ----- HyperTalk script -----
- on mouseDown
- set the numberFormat to "0.00"
- get the freeSize of this stack
- put it / 1024 && "K" into FS
- put FS into field "FreeSpaceMon2"
- end mouseDown
-
-
- -- part 82 (field)
- -- low flags: 81
- -- high flags: 0000
- -- rect: left=436 top=62 right=76 bottom=493
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 10496
- -- line height: 12
- -- part name: FreeSpaceMon2
- ----- HyperTalk script -----
- on mouseDown
- set the numberFormat to "0.00"
- get the freeSize of this stack
- put it / 1024 && "K" into FS
- put FS into field "FreeSpaceMon2"
- end mouseDown
-
-
- -- part 83 (button)
- -- low flags: 00
- -- high flags: C002
- -- rect: left=12 top=26 right=38 bottom=494
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 8192
- -- line height: 16
- -- part name: A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | + | -
- ----- HyperTalk script -----
- on mouseDown
- global Fred, Nick
- set hilite of me to true
- lockcard
- push card
- go to bkgnd id 2295
- if Fred <> empty then
- if visible of field Fred is true then hide field Fred
- end if
- put the rect of the target into holder
- put (item 1 of the clickloc) - (item 1 of the rect of me) into A
- put (item 3 of the rect of me) - (item 1 of the rect of me) into B
- put the numToChar of (trunc(A/(B/28))+65) into Fred
- if Fred is empty then
- pop card
- exit mouseDown
- else if Fred is "[" then indexAddName
- else if Fred is "\" then indexDeleteName
- else
- play Fred
- if the commandKey is down then indexEditMode
- else
- put (item 1 of the clickloc-6) into horiz
- put (item 2 of holder)+12 into vert
- if script of field Fred is empty then
- answer "Oops, nothing to display." with "Sorry"
- pop card
- exit mouseDown
- else
- get HeirPopupMenu(script of field Fred,0, vert, horiz)
- if it is "0" then exit mouseDown
- put Item 1 of it into TheLine
- put Item 2 of it into TheItem
- if Item 2 of it <> 1 then
- put item 1 of line TheLine of script of field Fred & item TheItem of line TheLine of script of field Fred into Sam
- else
- put (item 1 of line TheLine of script of field Fred) into Sam
- end if
- pop card
- unlockcard
- if Sam is "Menu Maker" then
- answer "Sorry, This feature not yet supported"
- exit mouseDown
- else if Sam is "Menus" then
- answer "Sorry, This feature not yet supported"
- exit mouseDown
- else if Sam is "Scripts" then
- answer "Sorry, This feature not yet supported"
- exit mouseDown
- else if Sam is "Button Font Changer" then
- changeFont
- exit mouseDown
- else if Sam is "Change Button Font" then
- changeFont
- exit mouseDown
- else if Sam is "Crash" then
- crash
- exit mouseDown
- else if Sam is "Create An Icon" then
- MakeIcon
- exit mousedown
- else if Sam is "Credits" then
- credits
- exit mouseDown
- else if Sam is "Cursors" then
- cursors
- exit mouseDown
- else if Sam is "Date & Time" then
- timeDate
- exit mouseDown
- else if Sam is "Dedications" then
- dedications
- exit mouseDown
- else if Sam is "DeProtect Stack" then
- deprotect1
- exit mouseDown
- else if Sam is "Disk Space Available" then
- diskSpaceAvail
- exit mouseDown
- else if Sam is "Don't Click Here" then
- overLoad
- exit mouseDown
- else if Sam is "Don't Panic" then
- panic
- exit mouseDown
- else if Sam is "Edit This Bkgnd Script" then
- edit script of this bkgnd
- exit mouseDown
- else if Sam is "Edit This Card Script" then
- edit script of this card
- exit mouseDown
- else if Sam is "Edit This Stack Script" then
- edit script of this stack
- exit mouseDown
- else if Sam is "Free Space in this stack" then
- freeSpace
- exit mouseDown
- else if Sam is "Free Space Monitor" then
- freeSpaceMon
- exit mouseDown
- else if Sam is "Get Specs" then
- getSpecs
- exit mouseDown
- else if Sam is "Heap Space" then
- heapSpaceAvail
- exit mouseDown
- else if Sam is "Hidden Buttons" then
- ShowHiddenBtns
- exit mouseDown
- else if Sam is "Hidden Fields" then
- ShowHiddenFields
- exit mouseDown
- else if Sam is "HyperCard Version?" then
- HyperCardVersion
- exit mouseDown
- else if Sam is "HyperEdit" then
- answer "Hold down the return Key and the shift Key"
- exit mouseDown
- else if Sam is "HyperSound‚Ñ¢" then
- go to stack "HyperSound"
- exit mouseDown
- else if Sam is "Last Updated" then
- updated
- exit mouseDown
- else if Sam is "List Next & Prev Cards" then
- LNPC
- exit mouseDown
- else if Sam is "Make Icons" then
- MakeIcon
- exit mousedown
- else if Sam is "Mouse Location" then
- mouseLocation
- exit mousedown
- else if Sam is "Open Aplication" then
- openApl
- exit mouseDown
- else if Sam is "Pixel Grid" then
- piGrid
- exit mouseDown
- else if Sam is "ResCopy" then
- ResCopy
- exit mouseDown
- else if Sam is "ResEdit" then
- open "ResEdit 1.1B3"
- exit mouseDown
- else if Sam is "Script of Bkgnd..." then
- bkgndScript
- exit mouseDown
- else if Sam is "Script of Button..." then
- btnScript
- exit mouseDown
- else if Sam is "Script of Card..." then
- cardScript
- exit mouseDown
- else if Sam is "Script of Field..." then
- fieldScript
- exit mouseDown
- else if Sam is "Script of Stack..." then
- stackScript
- exit mouseDown
- else if Sam is "Script of Home" then
- HomeScript
- exit mouseDown
- else if Sam is "Scripts" then
- answer "Sorry, This feature not yet supported"
- exit mouseDown
- else if Sam is "Show Heap Space" then
- heapSpaceAvail
- exit mouseDown
- else if Sam is "Show Size of This Stack" then
- SizeofStack
- exit mouseDown
- else if Sam is "SoundEdit‚Ñ¢" then
- open SoundEdit
- exit mouseDown
- else if Sam is "Stack Space Available" then
- stackSpaceAvail
- exit mouseDown
- else if Sam is "Updated Last" then
- updated
- exit mouseDown
- else if Sam is "Time & Date" then
- timeDate
- exit mouseDown
- else unlock
- if Sam is "About Stack Starter" then go to card "the stack starter"
- else if Sam is "Allover Analyzer" then go to card "the allover analyzer"
- else if Sam is "Animated Icons 1" then go to card "animated icons 1"
- else if Sam is "Animated Icons 2" then go to card "animated icons 2"
- else if Sam is "Animated Icons 3" then go to card "animated icons 3"
- else if Sam is "Animated Icons 4" then go to card "animated icons 4"
- else if Sam is "Animated Icons 5" then go to card "animated icons 5"
- else if Sam is "Animated Icons 6" then go to card "animated icons 6"
- else if Sam is "Author" then author
- else if Sam is "Button Breeder" then go to card "the button breeder"
- else if Sam is "Buttons" then go to card "the button breeder"
- else if Sam is "Cover" then go to card "the stack starter"
- else if Sam is "Controls" then go to card "the controls cultivator"
- else if Sam is "Crash" then crash
- else if Sam is "Credits" then credits
- else if Sam is "Dedications" then dedications
- else if Sam is "Don't Panic" then panic
- else if Sam is "Effects" then go to card "the effects editor"
- else if Sam is "Effects Editor" then go to card "the effects editor"
- else if Sam is "Explanations" then go to card "the stack starter"
- else if Sam is "Fields" then go to card "the field fabricator"
- else if Sam is "Field Fabricator" then go to card "the field fabricator"
- else if Sam is "Free-Roaming Icons" then go to card "Animated Icons 1"
- else if Sam is "Gauges" then go to card "meters and gauges"
- else if Sam is "Graphic Examples" then pause
- else if Sam is "Graphic Techniques" then pause
- else if Sam is "Helpful Hierarchy" then go to card "the helpful hierarchy"
- else if Sam is "Hierarchy" then go to card "the helpful hierarchy"
- else if Sam is "HyperSound‚Ñ¢" then go to stack "HyperSound"
- else if Sam is "Icon Iniatiator" then go to card "the icon iniatiator"
- else if Sam is "Icons" then go to card "the icon iniatiator"
- else if Sam is "Interactive Icons" then go to card "Animated Icons 1"
- else if Sam is "Intro" then pause
- else if Sam is "Keyboard Simulator" then go to card "Keyboard"
- else if Sam is "Knobs" then go to card "knobs"
- else if Sam is "Map" then go to card "the master map"
- else if Sam is "Master Map" then go to card "the master map"
- else if Sam is "Meters" then go to card "meters"
- else if Sam is "Multi-Icon Buttons" then go to card "Multi-Icon Buttons"
- else if Sam is "Open Aplication" then openApl
- else if Sam is "Panic" then panic
- else if Sam is "Pause" then pause
- else if Sam is "Pushbuttons" then go to card "Pushbuttons Switches"
- else if Sam is "Sliders" then go to card "sliders"
- else if Sam is "Sounds" then go to card "the sound sampler"
- else if Sam is "Speech" then go to card "the sound sampler"
- else if Sam is "Switches" then go to card "Pushbuttons Switches"
- else if Sam is "Tools" then go to card "the allover analyzer"
- else if Sam is "Visual Effects" then go to card "the effects editor"
- else if Sam is "XCMDs" then go to card "the master map"
- else if Sam is "XFCNs" then go to card "the master map"
- else
- put "the " before Sam
- go card Sam
- if the result <> empty then answer "Sorry, this feature not yet supported."
- end if
- end if
- end if
- end if
- hide msg
- end mouseDown
-
- on indexAddName
- global Fred
- ask "What menu ITEM would you like to add?" with "Please type ITEM NAME here."
- if it is "Please type ITEM NAME here." then
- else if it is empty then
- else
- set cursor to 4
- lockcard
- put it into addName
- put first char of addName into Fred
- if Fred is not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" then beep 2
- else
- put LowerToUpper(char 1 of addName) into char 1 of addName
- put script of field Fred into field Fred
- put addName into line (number of lines in field Fred) + 1 of field Fred
- put SortLines(field Fred, "A" ) into field Fred
- put crunch(field Fred) into field Fred
- set script of field Fred to field Fred
- end if
- end if
- put empty into Fred
- end indexAddName
-
- on indexDeleteName
- global Fred
- ask "Please enter the EXACT ITEM NAME to delete."
- if it is empty then
- else
- put it into deName
- answer "Delete" && quote & deName & quote & "?" with "Cancel" or "Yes"
- if it is "Yes" then
- set cursor to 4
- lockcard
- put first char of deName into Fred
- if Fred is not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" then beep 2
- else
- put script of field Fred into field Fred
- Repeat with i = 1 to (number of lines in field Fred + 1)
- if line i of field Fred = dename then
- delete line i of field Fred
- exit repeat
- end if
- end repeat
- --if i > (number of lines in field Fred) then
- --beep 2
- -- answer "You must type name exactly as it appears"
- --else
- put SortLines(field Fred, "A" ) into field Fred
- put crunch(field Fred) into field Fred
- set script of field Fred to field Fred
- -- end if
- end if
- end if
- end if
- put empty into Fred
- end indexDeleteName
-
- on indexEditMode
- global Fred
- edit script of field Fred
- set cursor to 4
- lockcard
- put script of field Fred into field Fred
- Repeat with i = 1 to number of lines in field Fred
- put LowerToUpper(char 1 of line i of field Fred) into char 1 of line i of field Fred
- end repeat
- put SortLines(field Fred, "A" ) into field Fred
- put crunch(field Fred) into field Fred
- set script of field Fred to field Fred
- end indexEditMode
-
- on mouseUp
- set lockMessages to true
- end mouseUp
-
-
-
- -- part 84 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=12 top=311 right=327 bottom=59
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Cover
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 85 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=58 top=311 right=327 bottom=93
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Map
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 86 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=92 top=311 right=327 bottom=151
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Buttons
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 87 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=150 top=311 right=327 bottom=211
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Controls
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 88 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=264 top=311 right=327 bottom=310
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Fields
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 89 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=309 top=311 right=327 bottom=352
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Icons
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 90 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=351 top=311 right=327 bottom=404
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Scripts
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 91 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=403 top=311 right=327 bottom=455
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Sounds
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 92 (button)
- -- low flags: 00
- -- high flags: 8000
- -- rect: left=454 top=311 right=327 bottom=494
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Tools
- ----- HyperTalk script -----
- on mouseUp
- set hilite of me to true
- doMenu short name of me
- set hilite of me to false
- end mouseUp
-
-
-
- -- part 93 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=26 top=174 right=224 bottom=65
- -- title width / last selected line: 0
- -- icon id / first selected line: 29399 / 29399
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: MorEFX
- ----- HyperTalk script -----
- on mouseDown
- put the rect of the target into holder
- put item 1 of holder into horiz
- put item 2 of holder into vert
- get PopUpMenu(" Moire ; Modrian ; Stripes ",3, vert, horiz)
- hideall
- if it is empty then
- else if it is 1 then
- answer "Sorry, That feature is not yet supported."
- else if it is 2 then
- reset paint
- choose bucket tool
- set pattern to 1
- click at 0,0
- choose select tool
- set dragSpeed to 1000
- repeat forever
- drag from random(256),random(171) to (random(256) + 255),(random(171) + 170)
- if the mouse is down then
- cleanUp
- exit mouseDown
- end if
- doMenu "Invert"
- choose select tool
- end repeat
- else if it is 3 then
- choose brush tool
- set brush to 1
- repeat with i = 40 down to 1
- set pattern to i
- drag from 0,9 * (i-1) to 512 ,9 * (i-1)
- drag from 13 * (i-1), 10 to 13 * (i-1), 400
- if the mouse is down then
- cleanUp
- exit mouseDown
- end if
- end repeat
- choose browse tool
- else
- cleanUp
- end if
- wait until the mouseClick
- cleanUp
- end mouseDown
-
- on cleanUp
- choose select tool
- doMenu "Select All"
- doMenu "Clear Picture"
- choose browse tool
- show menubar
- end cleanUp
-
-
-
- -- part 94 (button)
- -- low flags: 00
- -- high flags: C002
- -- rect: left=15 top=62 right=75 bottom=221
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 256
- -- line height: 12
- -- part name: Volume | Fonts | Style | Size | Height
- ----- HyperTalk script -----
- on mouseDown
- global ActiveField
- set hilite of me to true
- put "field id 13" into jim
- put the rect of the target into holder
- put (item 1 of the clickloc) - (item 1 of the rect of me) into A
- put (item 3 of the rect of me)-(item 1 of the rect of me) into B
- put trunc(A/(B/5))into joe
- if Joe is empty then
- else
- put (item 1 of the clickloc-6) into horiz
- put (item 2 of holder)+13 into vert
- if joe is "0" then
- get PopUpMenu(" 0 ; 1 ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ", 0, vert, horiz)
- if it is "0" then
- else
- put word it of " 0 1 2 3 4 5 6 7" into sam
- SetVolume(sam)
- play harpsichord "c ew"
- end if
- else if Joe is "1" then
- if script of field "fontField" is empty then
- answer "Oops, no FONTS in this system." with "Sorry"
- exit mouseDown
- else
- get PopUpMenu(script of field "fontField",0, vert, horiz)
- if it is "0" then
- else
- put (line it of script of field "fontField") into Sam
- if ActiveField <> empty then
- set textFont of ActiveField to sam
- else set textFont to sam
- end if
- end if
- else if Joe is "2" then
- get PopUpMenu(" Plain ; Bold ; Italic ; Underline ; Outline ; Shadow ; Condense ; Extend ;(----------) ; Left ; Center ; Right ", 0, vert, horiz)
- if it is "0" then
- else
- put word it of " Plain Bold Italic Underline Outline Shadow Condense Extend -- Left Center Right" into sam
- if ActiveField <> empty then
- if sam is "Plain" then set textStyle of ActiveField to plain
- else if sam is "Left" then set textAlign of ActiveField to left
- else if sam is "Center" then set textAlign of ActiveField to center
- else if sam is "Right" then set textAlign of ActiveField to right
- else if textStyle of ActiveField is "Plain" then set textStyle of ActiveField to sam
- else
- put "set textStyle of" && ActiveField && "to" && ((textStyle of ActiveField) & "," && sam) into temp
- do (temp)
- end if
- else
- if sam is "Plain" then set textStyle to sam
- else if sam is "Left" then set textAlign to left
- else if sam is "Center" then set textAlign to center
- else if sam is "Right" then set textAlign to right
- else if the textStyle is "Plain" then set textStyle to sam
- else
- put "set textStyle" && "to" && ((the textStyle) & "," && sam) into temp
- do (temp)
- end if
- end if
- end if
- else if Joe is "3" then
- get PopUpMenu(" 6 ; 8 ; 9 ; 10 ; 12 ; 14 ; 18 ; 24 ; 36 ; 48 ; 52 ; 72 ", 0, vert, horiz)
- if it is "0" then
- else
- put word it of " 6 8 9 10 12 14 18 24 36 48 52 72 " into sam
- if ActiveField <> empty then
- set textSize of ActiveField to sam
- else set textSize to sam
- end if
- else if Joe is "4" then
- get PopUpMenu(" +1 ; -1 ; +3 ; -3 ; +5 ; -5 ; +10 ; -10 ", 0, vert, horiz)
- if it is "0" then
- else
- put word it of " +1 -1 +3 -3 +5 -5 +10 -10 " into sam
- if ActiveField <> empty then
- put "set textHeight of" && ActiveField && "to (" & (textHeight of ActiveField) & (sam) & ")" into temp
- do (temp)
- end if
- end if
- end if
- end if
- end mouseDown
-
- on mouseUp
-
- end mouseUp
-
-
-
- -- part 95 (button)
- -- low flags: 00
- -- high flags: C002
- -- rect: left=15 top=39 right=52 bottom=118
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 256
- -- line height: 12
- -- part name: Set UserLevel To:
- ----- HyperTalk script -----
- on mouseDown
- set hilite of me to true
- put the loc of me into holder
- put (item 1 of holder-52) into horiz
- put (item 2 of holder)+8 into vert
- get PopUpMenu("1 Browsing ;2 Typing ;3 Painting ;4 Authoring ;5 Scripting ", 0, vert, horiz)
- if it is "0" then set userlevel to 1
- else if it is "1" then set userlevel to 2
- else if it is "2" then set userlevel to 3
- else if it is "3" then set userlevel to 4
- else if it is "4" then set userlevel to 5
- else exit mouseDown
- end mouseDown
-
- on mouseUp
-
- end mouseUp
-
-